import axios from 'axios';
import { baseUrl, req } from './axiosFun';

// 添加排班信息
export const workSchedule = (params) => { return req("post", baseUrl + "/work/schedule", params) };
// 获取全部排班信息
export const workScheduleList = (params) => { return req("get", baseUrl + "/work/check/all", params) };
// 获取某个员工的排班信息
export const userWSL = (params) => { return axios.get(baseUrl + "/work/check/" + params).then(res => res.data) };
// 删除排班信息
export const deleteWSL = (params) => { return axios.delete(baseUrl + "/work/delete/" + params).then(res => res.data) };
// 编辑排班信息
export const updateWSL = (params) => { return req("post", baseUrl + "/work/update", params) };